package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YWGiftCard;
import com.ecoolex.discount.sales.entity.YWGiftCardExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YWGiftCardMapper {
    long countByExample(YWGiftCardExample example);

    int deleteByExample(YWGiftCardExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YWGiftCard record);

    int insertSelective(@Param("record") YWGiftCard record, @Param("selective") YWGiftCard.Column ... selective);

    YWGiftCard selectOneByExample(YWGiftCardExample example);

    List<YWGiftCard> selectByExample(YWGiftCardExample example);

    YWGiftCard selectByPrimaryKey(Long id);

    YWGiftCard selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YWGiftCard record, @Param("example") YWGiftCardExample example, @Param("selective") YWGiftCard.Column ... selective);

    int updateByExample(@Param("record") YWGiftCard record, @Param("example") YWGiftCardExample example);

    int updateByPrimaryKeySelective(@Param("record") YWGiftCard record, @Param("selective") YWGiftCard.Column ... selective);

    int updateByPrimaryKey(YWGiftCard record);

    int batchInsert(@Param("list") List<YWGiftCard> list);

    int batchInsertSelective(@Param("list") List<YWGiftCard> list, @Param("selective") YWGiftCard.Column ... selective);

    int logicalDeleteByExample(@Param("example") YWGiftCardExample example);

    int logicalDeleteByPrimaryKey(Long id);
}